/**
 * 
 */
package com.teach.service.impl;

import com.teach.dao.UserDAO;
import com.teach.service.UserDeleteService;

/**
 * @author Liulianqiu
 *2020年7月29日
 */
public class UserDeleteServiceImpl implements UserDeleteService {

	private UserDAO userDAO = new UserDAO();
	@Override
	public boolean delete(int id) {
		try {
			return userDAO.deleteById(id);
		} catch (Exception e) {
			throw new RuntimeException("删除用户失败", e);
		}
		
	}

	
}
